
const apiStatus = require('../../apiStatus');

function setup(app, appRouter){
    appRouter.post('/api/info', async(ctx,next) => {
        ctx.apiBody = "info";
        next();
    });
    appRouter.post('/api/login', async(ctx,next) => {
        console.log(ctx.user);
        ctx.apiBody = ctx.user.userId;
        next();
    });

    /*appRouter.post('/api/jwtinfo', app.jwtAuthorize, async(ctx,next) => {
        console.log(ctx.user);
        ctx.apiBody = ctx.user.userId;
        next();
    });*/
}

module.exports = setup;
